using System;
using System.Collections.Generic;
using System.Text;
using WCSFContrib.Extensions.CompositeWeb.Interfaces;
using WCSFContrib.Extensions.CompositeWeb.Configuration;

namespace WCSFContrib.Extensions.CompositeWeb.Tests.Mocks
{
    public class MockModuleInfoStore : ICustomModuleInfoStore
    {
        CustomModulesConfigurationSection _section = new CustomModulesConfigurationSection();

        #region IModuleInfoStore Members

        public CustomModulesConfigurationSection GetModuleConfigurationSection()
        {
            return _section;
        }

        public CustomModuleConfigurationElement[] Modules
        {
            set { _section.Modules = new CustomModuleConfigurationElementCollection(value); }
        }

        #endregion
    }
}